import ajax, { ListResult, toOptions } from '../ajax';
import { computed, ref } from 'vue';

export async function getAvailableList() {
    return ajax.get<ListResult> ('/Problems/TypeRelations/Available');
}

export async function getExamTypeRelationList(examId: number) {
    return ajax.get<ListResult> (`/Problems/Exams/${examId}/TypeRelations`);
}